﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for ChiTietDonHang
/// </summary>
[Serializable]
public class ChiTietDonHang
{
    int id;

    public int Id
    {
        get { return id; }
        set { id = value; }
    }
    SanPham sanpham;

    public SanPham Sanpham
    {
        get { return sanpham; }
        set { sanpham = value; }
    }

    int soluong;

    public int Soluong
    {
        get { return soluong; }
        set { soluong = value; }
    }
    int donhangid;

    public int Donhangid
    {
        get { return donhangid; }
        set { donhangid = value; }
    }

    float thanhtien;

    public float Thanhtien
    {
        get { return Soluong*Sanpham.Giaban; }
    }
    HinhAnh hinhanh;

    public HinhAnh Hinhanh
    {
        get { return hinhanh; }
        set { hinhanh = value; }
    }


}